
//package com.gorkr.cronback.config;
//import com.gorkr.cronback.task.PrintNowTimeJob;
//import org.quartz.*;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class JobConfig {
//
//    @Bean
//    public JobDetail jobDetail(){
//
//
//        JobDetail jobDetail = JobBuilder.newJob(PrintNowTimeJob.class)
//                .withIdentity("jobDetail","jobDetail")
//                .storeDurably()
//                .build();
//        return jobDetail;
//    }
//
//    @Bean
//    public Trigger trigger(){
//        Trigger trigger = TriggerBuilder.newTrigger()
//                .forJob(jobDetail())
//                .withIdentity("trigger", "trigger")
//                .startNow()
//                .withSchedule(CronScheduleBuilder.cronSchedule("*/5 * * * * ?"))
//                .build();
//        return trigger;
//    }
//}
